package com.ccxe.manage.page;

public class Pager {
	
	private int startNum;//起始位置
	
    private int currentPage;//当前页数
    
    private int pageSize;//页面大小
    
    public Pager(int currentPage,int pageSize){
    	 if(currentPage<=0){
    		 currentPage=1;
    	 }else{
    		 this.currentPage=currentPage;
    	 }
    	 if(pageSize<=0){
    		 pageSize=10;
    	 }else{
    		 this.pageSize=pageSize;
    	 }
    	 this.startNum=(currentPage-1)*pageSize;
     }
    
     public int getStartNum() {
 		return startNum;
 	}

 	public int getCurrentPage() {
 		return currentPage;
 	}

 	public int getPageSize() {
 		return pageSize;
 	}
}
